package com.xin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xin.entity.crm.EmployEntity;
import com.xin.entity.shop.ShopEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ShopMapper extends BaseMapper<ShopEntity> {

    /**
     * 获取店铺管理员的邮箱号
     * @param shopId
     * @return
     */
    String getShopAdminEmail(@Param("shopId")Long shopId);

    /**
     * 根据店铺id查询管理员信息
     * @param shopId
     * @return
     */
    EmployEntity findByShopIdGetEmployee(@Param("shopId")Long shopId);
}
